/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mb.mbpart.object;

import static mb.mbpart.object.CategoryObject.STR_C_CATEGORY_ID;
import net.sf.json.JSONObject;
import org.json.simple.JSONValue;

/**
 *
 * @author thanh.nguyenchi
 */
public class ProvinceObject {
    static String STR_C_PROVINCE_ID = "Province_ID";
    static String STR_C_NAME = "Name";      
    
    //public field
    public long C_PROVINCE_ID;
    public String C_NAME;    
    //add field
    public String C_NAME_EN;
    public String C_IMAGE;
    public String C_HOMEPAGE;
    
    public ProvinceObject(){}
    
    public String toJson(){
        JSONObject objRecv = new JSONObject();
        objRecv.put(STR_C_PROVINCE_ID, new Long(this.C_PROVINCE_ID));
        objRecv.put(STR_C_NAME, this.C_NAME);                
        return JSONValue.toJSONString(objRecv);
    }
}
